package com.itheima.test1;

public class Test12 {
    public static void main(String[] args) {
        int x = 12321;
        int temp = x;
        int num = 0;
        while(x != 0){
            int ge = x % 10;
            num = num * 10 + ge;
            x /= 10;
        }
        System.out.println(num);
        System.out.println(temp == num);
    }
}
